Klasse HighlightData.Highlight
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
com.inet.pdfc.generator.message.HighlightData.Highlight
- Alle implementierten Schnittstellen:
Shape, Serializable, Cloneable
- Umschließende Schnittstelle:
HighlightData
Represents a highlight area on a certain page. The coordinates are in pixels an relative to the unscaled page
image coordinates
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypKlasseBeschreibungstatic enumAppearances of a highlight.Von Klasse geerbte verschachtelte Klassen/Schnittstellen Rectangle2D
Rectangle2D.Double, Rectangle2D.Float -
Feldübersicht
Von Klasse geerbte Felder Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungHighlight(int x, int y, int width, int height, String caption, HighlightData.Highlight.Appearance appearance, Color color) Creates the highlight areaHighlight(Rectangle bounds, String caption, HighlightData.Highlight.Appearance appearance, Color color) Creates the highlight area -
Methodenübersicht
Modifikator und TypMethodeBeschreibungbooleancontains(int x, int y) Returns the appearance.Returns the caption to be displayed in the areagetColor()The base color to draw this highlightgetImage()Returns the image.Returns the key of the render cache entry for drawing this highlight.getType()Returns the type.booleanReturns a flag indicating this highlight represents an annotation.voidSets the image.voidsetRenderCacheKey(String renderCacheKey) Sets the key of the render cache entry for drawing this highlight.voidSets the type.Von Klasse geerbte Methoden Rectangle
add, add, add, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, unionVon Klasse geerbte Methoden Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, unionVon Klasse geerbte Methoden RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalVon Schnittstelle geerbte Methoden Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
-
Konstruktordetails
-
Highlight
public Highlight(Rectangle bounds, String caption, HighlightData.Highlight.Appearance appearance, Color color) Creates the highlight area- Parameter:
bounds- the bounds of the highlightcaption- the caption to be displayed INSIDE the area, may benullappearance- indicates how to draw the highlightcolor- the base color for this highlight. Note that the Alpha channel will be ignored an set by the painter
-
Highlight
public Highlight(int x, int y, int width, int height, String caption, HighlightData.Highlight.Appearance appearance, Color color) Creates the highlight area- Parameter:
x- the x-offsety- the y-offsetwidth- the width in PXheight- the height in PXcaption- the caption to be displayed INSIDE the area, may benullappearance- indicates how to draw the highlightcolor- the base color for this highlight. Note that the Alpha channel will be ignored an set by the painter
-
-
Methodendetails
-
getCaption
Returns the caption to be displayed in the area- Gibt zurück:
- the caption to be displayed in the area,
nullif there is none
-
getColor
The base color to draw this highlight- Gibt zurück:
- the base color to draw this highlight
-
getImage
-
setImage
-
isAnnotation
public boolean isAnnotation()Returns a flag indicating this highlight represents an annotation.- Gibt zurück:
- true if this highlight represents an annotation
-
setType
-
getType
-
getAppearance
Returns the appearance.- Gibt zurück:
- the appearance.
-
getRenderCacheKey
Returns the key of the render cache entry for drawing this highlight.- Gibt zurück:
- the key of the render cache entry for drawing this highlight
-
setRenderCacheKey
Sets the key of the render cache entry for drawing this highlight.- Parameter:
renderCacheKey- the key of the render cache entry for drawing this highlight
-
contains
-